package org.example.redishello1.controller;

import org.example.redishello1.entity.Product;
import org.example.redishello1.service.ProductService;
import org.example.redishello1.vo.R;
import org.springframework.web.bind.annotation.*;
import jakarta.annotation.Resource;

/**
 * (Product)表控制层
 *
 * @author 全哥哥
 * @since 2025-10-20 16:50:29
 */
@RestController
public class ProductController {
    /**
     * 服务对象
     */
    @Resource
    private ProductService productService;
    @GetMapping("sel")
    public R selectById(Long id){
        return productService.selectById(id);
    }




}

